.el-tab-pane {
  .app-container {
    padding: 0px !important;
  }
}

.app-container .el-table__body {
  width: 100% !important;
  table-layout: fixed !important;
}
// .tl-search-form > .el-form-item {
//   margin-top: 0px !important;
//   margin-bottom: 4px !important;
// }

// .tl-search-form > .el-button {
//   margin-bottom: 4px;
// }

.tl-table.el-table--medium td {
  padding: 2px 0;
}

.tl-table.el-table--small td {
  padding: 2px 0;
}

.tl-table.el-table--mini td {
  padding: 2px 0;
}

/* .tl-table .el-table__fixed-right {
  right: 7px !important;
} */
// .el-form-item__content .disabled {
//   border: 1px solid #A0A0A0;
// }
// .el-form-item__content .is-disabled {
//   border: 1px solid #A0A0A0;
// }
.tl-table.el-table td {
  padding: 2px 0;
}
.el-table__body,
.el-table__footer,
.el-table__header {
  table-layout: fixed;
  border-collapse: separate;
}
.tl-table.el-table th {
  padding: 6px 0;
}
.tl-table.el-table--medium th {
  padding: 6px 0;
}

.tl-table.el-table--small th {
  padding: 6px 0;
}

.tl-table.el-table--mini th {
  padding: 6px 0;
}

.tl-table.el-table th {
  padding: 6px 0;
}
//列表 popper tootip显示宽度限制
.el-tooltip__popper {
  max-width: 300px;
}
body #app {
  // 菜单区域
  .sidebar-container {
    // 背景色
    background-color: #01365a !important;
    width: 210px !important;
    .scrollbar-wrapper {
      .el-scrollbar__view {
        .el-submenu__icon-arrow {
          left: 178px;
        }
      }
    }
    // 菜单字体颜色
    .scrollbar-wrapper {
      .el-scrollbar__view {
        height: 100% !important;
        .menu-wrapper span {
          color: white;
        }
      }
    }
    .el-submenu__title{
      background-color: #01365a;
    }
    .el-submenu__title:hover {
      background-color: #006bb3 !important;
    }
    // 标题栏系统logo
    & > .el-menu-item.logo {
      background-color: #01365a !important;
      border-bottom: #596171 1px solid;
      margin: 0 5px;
    }
  }
  .main-container {
    margin-left: 210px;
  }
}

// 选中子菜单的背景色
#app .sidebar-container .nest-menu .el-submenu > .el-submenu__title:hover,
#app .sidebar-container .nest-menu .el-submenu > .el-submenu__title.is-active,
#app .sidebar-container .el-submenu .el-menu-item:hover,
#app .sidebar-container .el-submenu .el-menu-item.is-active {
  background-color: #006bb3 !important;
}

// 展开子菜单的背景色
#app .sidebar-container .nest-menu .el-submenu > .el-submenu__title,
#app .sidebar-container .el-submenu .el-menu-item {
  background-color: #01365a !important;
}

// .tl-layout-navbar .hamburger-container {
// display: none;
// }

.money-input.el-input .el-input__inner {
  text-align: right !important;
}

.normal.el-input-number .el-input__inner {
  text-align: center !important;
}

.el-input-number .el-input__inner {
  text-align: right !important;
}

.tl-dialog .el-dialog__body {
  padding: 5px 50px !important;
  padding-bottom: 0;
  .el-form.tl-form.approval-area {
    margin-bottom: 0px;
    padding-top: 10px;
  }
}

.el-dialog__footer {
  padding: 10px 50px 20px !important;
}

// .app-container {
//   padding: 10px;
// }

div#size-select {
  display: none;
}

// .tl-layout-navbar .right-menu .right-menu-item {
//   font-size: 16px;
// }

.tl-form .el-form-item.is-error .el-input.is-disabled .el-input__inner {
  border-color: #d80a1e;
}

// table的字体大小
.el-table--mini,
.el-table--small,
.el-table__expand-icon {
  font-size: 14px !important;
}

.el-input--mini,
.el-input {
  font-size: 14px !important;
}

.el-alert {
  padding: 5px 16px !important;
}

.tl-dialog .el-dialog__header .el-dialog__title,
.tl-dialog .el-drawer__header .el-dialog__title {
  font-size: 14px !important;
}

// 暂无数据 居左显示
.tl-table .el-table__empty-block {
  justify-content: left;
  padding-left: 300px;
  text-align: left;
}

.el-collapse-item__header {
  font-size: 14px !important;
}
.customer-container,
.project-container,
.mpm-project-container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  padding: 15px;
  .customer-header,
  .project-header,
  .mpm-project-header {
    width: 100%;
    height: 60px;
    border-bottom: 1px solid rgb(232, 232, 232);
    overflow: hidden;
    p {
      margin: 0;
      overflow: hidden;
    }
    .info {
      overflow: hidden;
      .logo {
        font-size: 55px;
        float: left;
        margin-right: 15px;
      }
      .content {
        padding-top: 5px;
        p.contentOffset > span:not(:first-of-type) {
          margin-left: 20px;
        }
        p:first-child {
          line-height: 25px;
          * {
            display: block;
            float: left;
          }
        }
        p:last-child {
          color: #888;
          font-size: 14px;
          height: 24px;
          line-height: 24px;
          span {
            display: inline-block;
            margin-right: 15px;
          }
        }
        b {
          font-size: 20px;
        }
        i {
          color: #409eff;
          font-style: normal;
          font-size: 15px;
        }
        .el-tag {
          height: 23px;
          line-height: 23px;
          display: inline-block;
          margin: 0 20px;
        }
      }
    }
    .toolbar {
      position: absolute;
      z-index: 10;
      right: 15px;
      top: 15px;
      .el-button.is-plain {
        padding: 9px 15px;
        border-radius: 6px;
        font-size: 14px;
      }
    }
  }
  .customer-nav,
  .project-nav,
  .mpm-project-nav,
  .customer-nav {
    border-right: 1px solid rgb(232, 232, 232);
    overflow: hidden;
    flex: 0 1 200px;
    height: 100%;
    .nav-list {
      margin: 0;
      padding: 0;
      list-style: none;
      font-size: 14px;
      color: #555;
      li {
        margin-top: 10px;
        height: 34px;
        line-height: 35px;
        padding-left: 12px;
        .navNum {
          background: var(--tap-main-color, '#0a6ed2') !important;
          color: white !important;
          font-weight: bold;
        }
        .navNumDis {
          background: #e4e4e4 !important;
          color: #999999 !important;
          font-weight: bold;
        }
        .navTextDis {
          color: #999999 !important;
        }
        a {
          cursor: pointer;
        }
        &.on {
          background: #d9ecff;
          border-left: 4px solid var(--tap-main-color, '#0a6ed2');
          padding-left: 8px;
          i {
            background: white;
          }
        }
        &.lvl2 {
          padding-left: 30px;
          font-size: 13px;
        }
        i {
          font-style: normal;
          color: var(--tap-main-color, '#0a6ed2');
          display: inline-block;
          height: 20px;
          line-height: 20px;
          width: 20px;
          text-align: center;
          border-radius: 10px;
          font-size: 10px;
          margin-left: 5px;
          background: #d9ecff;
        }
        label {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 10px;
          color: rgb(250, 140, 49);
          display: inline-block;
          margin-left: 5px;
        }
      }
    }
  }
  .customer-main,
  .project-main,
  .mpm-project-main {
    // padding-bottom: 20px;
    width: 1px;
    flex: 1;
    .customer-main-container,
    .project-container,
    .project-main-container,
    .mpm-project-main-container {
      height: 100%;
      .el-scrollbar__wrap {
        overflow-x: hidden;
        overflow-y: auto;
      }
    }
    .step-position {
      display: block;
      height: 0;
    }
    .tl-table {
      margin-left: 25px;
      width: calc(100% - 25px);
    }
    .el-table--mini,
    .el-table--small,
    .el-table__expand-icon {
      font-size: 14px;
    }
    .line {
      height: 0px;
      border-bottom: 1px solid #f2f2f2;
      margin: 25px 0 10px 0;
      margin-left: 25px;
    }
  }
}
.modal-container {
  height: 100vh;
  width: 100vw;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
}
.tl-drawer.frame-drawer {
  .el-drawer__open .el-drawer.rtl {
    animation: none;
    box-shadow: none;
  }
}
.tl-form-line-title {
  font-size: 18px;
  font-weight: bold;
  height: 20px;
  line-height: 20px;
  border-left: 4px solid #409eff;
  padding-left: 8px;
  margin: 17px 0 12px 15px;
  overflow: hidden;
  &.sub-title {
    font-weight: normal;
    border-left: none;
    padding-left: 12px;
    font-size: 18px;
    color: black;
  }
  .toolbar {
    float: right;
    .el-button {
      padding: 0;
      line-height: 20px;
    }
  }
  .simple-pager {
    font-size: 14px;
    font-weight: normal;
    color: #777;
    display: inline-block;
    margin-left: 20px;
    i {
      color: #c0c0c0;
    }
    i.on {
      cursor: pointer;
      color: #409eff;
    }
  }
}
.app-container-lr {
  margin: 12px;
  overflow: hidden;
  position: relative;
  .app-left,
  .app-right {
    background: white;
    border-radius: 5px;
    padding: 10px;
  }
  .app-right {
    margin-left: 232px;
    .btn-search-bar {
      display: none;
    }
  }
  .app-left {
    width: 220px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    .tl-list-left-search {
      overflow-x: hidden;
      height: 100%;
    }
    .search-container {
      margin-top: 10px;
      height: calc(100% - 46px);
      width: calc(100% + 15px);
      padding-right: 15px;
      .el-scrollbar__wrap {
        overflow-x: hidden;
      }
    }
    .search-form {
      margin-bottom: 10px;
      .el-form-item {
        margin-bottom: 0;
        .el-form-item__label {
          padding: 0;
        }
      }
      .el-date-editor.el-input,
      .el-date-editor.el-input__inner {
        width: 100%;
      }
      .el-badge__content.is-fixed {
        right: 35px;
      }
    }
  }
}
.approval-container {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #f9f9f9;
  .approval-main-container {
    height: calc(100% - 90px);
    .el-scrollbar__wrap {
      overflow-x: hidden;
    }
    .form-main-area {
      padding: 15px;
      background-color: white;
    }
  }
  .approval-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-bottom: 0px;
    background-color: #fdf6ec;
    border-radius: 5px;
    padding: 15px 0;
    border-top: 1px solid #ccc;
    box-shadow: 0px -5px 5px #f2f2f2;
    overflow: hidden;
    height: 90px;
  }
}

// 首页小标题
.projectIndexSquare {
  height: 14px;
  width: 5px;
  background: #409eff;
  display: inline-block;
  margin-right: 2px;
  vertical-align: middle;
  border-radius: 5px;
}
.projectIndexTitle {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
}
.projectIndexInfo {
  color: black;
  font-size: 14px;
  font-weight: bold !important;
  vertical-align: middle;
}
// 列表页样式
.app-container .qryItem {
  margin-right: 25px;
}
.tl-list-toolbar {
  margin-bottom: 10px;
  .tl-dialog .el-dialog__body {
    padding: 20px 20px 0 20px !important;
  }
}
// 项目超级、里程牌超期那几个小标题
.projectStateContext {
  height: 20px;
  width: 100px !important;
  line-height: 20px;
  margin-left: 8px !important;
  font-size: 14px;
  color: #666666;
}
.projectStateContext.milepost {
  height: 20px;
  width: 150px !important;
  line-height: 20px;
  margin-left: 8px !important;
  font-size: 14px;
  color: #666666;
}
// 项目级别选择器、级别修改按钮样式
.levelSelect {
  .el-input__inner {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    box-sizing: border-box !important;
  }
  .el-input.is-disabled {
    .el-input__inner:hover {
      border: 1px solid #a0a0a0 !important;
    }
    .el-input__icon {
      display: none;
    }
  }
}

.levelButton.el-button.el-button--primary {
  width: 50px;
  display: flex;
  justify-content: center;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  &.el-button--mini {
    height: 28px;
  }
  &.el-button--small {
    height: 32px;
  }
  &:hover {
    background: #409eff;
    border-color: #409eff;
  }
  &:disabled {
    background-color: #f5f7fa;
    color: #909399;
    border: 1px solid #dcdfe6;
    border-left: none;
    &:hover {
      background-color: #f5f7fa;
      border: 1px solid #dcdfe6;
      border-left: none;
    }
  }
}
// 带单位的计数器样式
.unitInputNumber {
  width: 100% !important;
  .el-input-number__increase {
    margin-right: 48px;
    background-color: transparent;
    border: none !important;
    &:disabled {
      display: none;
    }
  }
  .el-input-number__decrease {
    margin-right: 48px;
    background-color: transparent;
    border: none !important;
    &:disabled {
      display: none;
    }
  }
  .el-input .el-input__inner {
    padding-right: 78px !important;
    box-sizing: border-box !important;
    &:disabled {
      padding-right: 58px !important;
    }
  }
}

.unitSpan {
  text-align: center;
  display: block;
  position: absolute !important;
  z-index: 2;
  top: 0px;
  right: 0px;
  background-color: #f5f7fa;
  color: #909399;
  width: 50px;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.el-form-item--mini {
  .unitSpan {
    height: 28px;
  }
}
.el-form-item--small {
  .unitSpan {
    height: 32px;
  }
}

// 带单位的输入框样式
.unitInput {
  .el-input-group__append {
    padding: 0 16px;
    border: 1px solid #dcdfe6;
    border-left: none;
  }
}
// 人员参照按钮样式
.tl-ref-selector,
.tl-ref-selector.disabled {
  .el-input-group__append {
    border-left: none !important;
  }
}
// 隐藏编辑页滚动条
.editPage {
  .el-drawer__body {
    overflow-y: hidden !important;
  }
}
.tl-ref-tree {
  .el-dialog {
    margin-top: 4vh !important;
  }
}

$validate-warning-color: #d80a1e;
$validate-disabled-color: #e9e9eb;
.tl-form {
  .el-form-item.is-error {
    .unitSpan {
      border-color: $validate-warning-color;
    }
    .levelButton.el-button.el-button--primary {
      &.is-disabled {
        border-color: $validate-warning-color;
        &:hover {
          border-color: $validate-warning-color;
        }
      }
    }
  }
}
.tl-validate-form,
.tl-validate-modal-offset .tl-form {
  .el-form-item.is-error {
    .unitSpan {
      background-color: $validate-disabled-color;
    }
    .levelButton.el-button.el-button--primary {
      &.is-disabled {
        background-color: $validate-disabled-color;
        &:hover {
          background-color: $validate-disabled-color;
        }
      }
    }
  }
}

.gantt_tooltip {
  z-index: 2050 !important;
}

.tl-dialog.taskab .el-dialog {
  margin-top: 7vh !important;
}

body {
  overflow-x: hidden!important;
}